
#include <iostream>
using namespace std;

#include "gtest/gtest.h"

#include "Array1D.h"

TEST( Array1DTest, Simple )
{
    Array1D<int> X( 10 ), Y, Z;

    for ( int i=0; i < 10; i++ )
        X[i] = i;

    EXPECT_EQ( 3, X[3] );

    Y = X;
    X += 2;
    Z = (Y + X) * Y;

    EXPECT_EQ( 3, Y[3] );
    EXPECT_EQ( 24, Z[3] );

}

#include "main_stub.h"

